package indzcraft.loader;
import java.util.HashMap;



public class SocketBonusDB {
	
	HashMap<Integer,SocketBonus> socketbonusDB = new HashMap<Integer,SocketBonus>();
	
	public SocketBonusDB(){
		populateEnchantDB();
	}
	
	private void populateEnchantDB() {
		socketbonusDB.put(4128, new SocketBonus(0, 0, 0, 0, 30, 0, 0));	// 30 haste
		socketbonusDB.put(4133, new SocketBonus(20, 0, 0, 0, 0, 0, 0));	// 20 agi
		socketbonusDB.put(2782, new SocketBonus(10, 0, 0, 0, 0, 0, 0));	// 10 agi
		socketbonusDB.put(4146, new SocketBonus(0, 0, 0, 0, 10, 0, 0));	// 10 haste
		socketbonusDB.put(2782, new SocketBonus(10, 0, 0, 0, 0, 0, 0));	// 10 agi
		socketbonusDB.put(4145, new SocketBonus(30, 0, 0, 0, 0, 0, 0));	// 30 agi
		socketbonusDB.put(4153, new SocketBonus(0, 0, 30, 0, 0, 0, 0));	// 30 cri
		socketbonusDB.put(4140, new SocketBonus(0, 0, 0, 0, 20, 0, 0));	// 20 haste
		socketbonusDB.put(4160, new SocketBonus(0, 0, 0, 0, 0, 10, 0));// 10 hit
		socketbonusDB.put(4123, new SocketBonus(0, 0, 0, 0, 0, 0, 10));// 10 mastery
		socketbonusDB.put(4211, new SocketBonus(0, 0, 0, 0, 10, 0, 0));// 10 haste
		socketbonusDB.put(4151, new SocketBonus(0, 0, 10, 0, 0, 0, 0));// 10 crit
		socketbonusDB.put(4137, new SocketBonus(0, 0, 0, 0, 0, 0, 20));// 20 mastery
		socketbonusDB.put(4130, new SocketBonus(0, 0, 20, 0, 0, 0, 0));// 20 crit
		
		// exp
		socketbonusDB.put(4163, new SocketBonus(0, 0, 0, 10, 0, 0, 0)); // 10 exp
		socketbonusDB.put(4164, new SocketBonus(0, 0, 0, 10, 0, 0, 0)); // 10 exp
		
		// PvP
		socketbonusDB.put(4184, new SocketBonus(0, 0, 0, 0, 0, 0, 0)); // 10 resi
		socketbonusDB.put(4185, new SocketBonus(0, 0, 0, 0, 0, 0, 0)); // 20 resi
		socketbonusDB.put(4186, new SocketBonus(0, 0, 0, 0, 0, 0, 0)); // 30 resi
		
		// Sta
		socketbonusDB.put(4154, new SocketBonus(0, 0, 0, 0, 0, 0, 0)); // 15 sta
		socketbonusDB.put(4134, new SocketBonus(0, 0, 0, 0, 0, 0, 0)); // 30 sta
		socketbonusDB.put(4159, new SocketBonus(0, 0, 0, 0, 0, 0, 0)); // 45 sta
		
		// Int
		socketbonusDB.put(4143, new SocketBonus(0, 0, 0, 0, 0, 0, 0)); // 10 int
		socketbonusDB.put(4144, new SocketBonus(0, 0, 0, 0, 0, 0, 0)); // 20 int
		socketbonusDB.put(4149, new SocketBonus(0, 0, 0, 0, 0, 0, 0)); // 20 int
		socketbonusDB.put(4150, new SocketBonus(0, 0, 0, 0, 0, 0, 0)); // 30 int
		
		// str
		socketbonusDB.put(4135, new SocketBonus(0, 0, 0, 0, 0, 0, 0)); // 10 str
		socketbonusDB.put(4136, new SocketBonus(0, 0, 0, 0, 0, 0, 0)); // 20 str
		socketbonusDB.put(4158, new SocketBonus(0, 0, 0, 0, 0, 0, 0)); // 30 str
		
		//// MOP
		socketbonusDB.put(4833, new SocketBonus(0, 0, 60, 0, 0, 0, 0)); // 60 crit
		socketbonusDB.put(4837, new SocketBonus(0, 0, 0, 60, 0, 0, 0)); // 60 exp
		socketbonusDB.put(4836, new SocketBonus(0, 0, 0, 0, 60, 0, 0)); // 60 haste
		socketbonusDB.put(4827, new SocketBonus(60, 0, 0, 0, 0, 0, 0)); // 60 agi
		socketbonusDB.put(4834, new SocketBonus(0, 0, 0, 0, 0, 0, 60)); // 60 mastery
		socketbonusDB.put(4828, new SocketBonus(120, 0, 0, 0, 0, 0, 0)); // 120 agi
		socketbonusDB.put(4829, new SocketBonus(180, 0, 0, 0, 0, 0, 0)); // 180 agi
		socketbonusDB.put(4849, new SocketBonus(0, 0, 0, 0, 0, 0, 120)); // 120 mastery
		socketbonusDB.put(4845, new SocketBonus(0, 0, 0, 120, 0, 0, 0)); // 120 exp
		
		// mop pvp
		socketbonusDB.put(4842, new SocketBonus(0, 0, 0, 0, 0, 0, 0)); // 60 pvp defense
		socketbonusDB.put(4851, new SocketBonus(0, 0, 0, 0, 0, 0, 0)); // 120 pvp defense
		socketbonusDB.put(4865, new SocketBonus(0, 0, 0, 0, 0, 0, 0)); // 180 pvp defense
	}
	
	public SocketBonus getSocketBonus(int id){
		if(socketbonusDB.containsKey(id)){
			return socketbonusDB.get(id);
		}
		System.out.println("unknown socketbonusid:"+  id);
		return null;
	}
}

